package net.yeah.mickey_zhouyou.framework.init;

import javax.swing.UIManager;

import net.yeah.mickey_zhouyou.database.DBUI;

/**
 * 框架初始化
 * 
 * @author Mickey
 * 
 */
public class FrameInitManager {

	private static final String NIMBUS_LOOKANDFEEL = "com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel";
	private static final String METAL_LOOKANDFEEL = "javax.swing.plaf.metal.MetalLookAndFeel";

	public static void initAll() {
		DBUI.init();

		try {
			UIManager.setLookAndFeel(NIMBUS_LOOKANDFEEL);
		} catch (Exception e) {
			e.printStackTrace();
			try {
				UIManager.setLookAndFeel(METAL_LOOKANDFEEL);
			} catch (Exception e1) {
				e1.printStackTrace();
			}
		}
	}

}
